package com.webbei.Backstage.service;

import java.util.List;
import java.util.Map;

import com.webbei.pojo.Customer;
import com.webbei.pojo.Customerlimit;
import com.webbei.pojo.Industry;
import com.webbei.pojo.Managers;
import com.webbei.pojo.Ordercost;
import com.webbei.pojo.Orders;
import com.webbei.pojo.Products;
import com.webbei.pojo.Report;
import com.webbei.pojo.Userhot;

public interface BackstateSer {
	 public List<Report> relist(int start);
	 public List<Managers> malist();
	 public List<Customer> cuslist();
	 public Customer findcusbyid(int id);
	 public List<Customer> fenyelist(int start);
	 public Customer findcusbyname(String uname);
	 public int getreortCount();
	 public int reportsuccess(String username,int count);
	 public int reportfail(String username,int count);
     public Userhot uhot(String username);
     public int customerlimitCount();
     public List<Customerlimit> cuslimitlist(int start);
     public int updatelimit(String name, int share, int ping, int ju, int ding);
     public Customerlimit cuslimi(String username);
     public List<Report> getrecontent(String bename);
     public List<Industry> getallinformation();
 	 public String getindusNamebyid(int id);
     public int deleteindus(int id);
     public Industry getone(int id);
     public List<Products> gotoAddindus();
     public int updateindus(int id,String industryName,String industryAddress,String industryPrincipal,String industryTel,String industryEmail);
     public int addindus(String industryName,String industryAddress,String industryPrincipal,String industryTel,String industryEmail);
     public List<Orders> orderlist(int start);
     public int getOrdercount(String datetime,String indusname);
     public int getOrdercountByindusid(String datetime,int indusid,String uname,int orderstate);
     public Orders getorder(int orderid);
     public int updCDRstateAndinCdrpath(String path,int orderid);
     public List<Orders> getorderByday(String day,String indusname,int start);
     public List<Orders> getindusorderByday(String day,int start,int indusid,String uname,int orderstate);
     public String getconmentcontentbyid(int id);
     public int deletecomment(int commentid);
     public String getproductNamebyid(int proid);
     public int updatecommentIdInreport(int reportid);
     //public String getcustomPicbycustomid(int customid);
     
     public int updateOrderstate(int orderid);
     public int updateStockout(int orderid, String liyou);
     public List getCostnameandCostmoney(int backpicid);
 	 public List<String> proName(int indusid);
 	 public List<String> moren(int indusid);
 	 public int insertinconpro(int indusid,int proid);
 	 public int getindusIdbyName(String name);
 	 public int deleteproidByindusid(int indusid);
 	 public int updatexuanzhong(int indusid,String proname);
     public int updateExceptxuanzhong(int indus,String proname);
     public int updateFeedbackreson(int orderid, String reason);
     public int insertcost(Ordercost orcost);
     public String getCdrurlByorderid(int orderid); 
     public List<Orders> orderlist(int orerid,String ordername,int indusid,String time1,String time2,int start);
     public List<Ordercost> ordercost();
     public Ordercost getoneordercost(int orderid);
     public List<Orders> allindusorderlist(int orderid,String ordername,int indusid,String time1,
				String time2,int start); 
     public int getoneOrdercostCount(int orerid,String ordername,int indusid,String time1,String time2);
     public int allOrdercostCount(int orderid,String ordername,int indusid,String time1,String time2);
     
     public String get9dingid(int orderid);
     public String chaifendingid(String dingid);
}
